<?php
require_once 'common.php';

/**
 * 站内消息模型
 * @author wangjiajun
 *
 */
class OaDomainAppModel extends OpModel
{

    private $_domainAppTable;
    
    public function __construct($logger = null)
    {
        if (is_null($logger)) {
            $logger = getOaModelLogger();
        }
        parent::__construct($logger);
        $dbConfig = Oa_Util_Config::getSingleDbConfig(OA_WEB_DB_CLUSTER_ID);
        $db = OpDbModel::getInstance($dbConfig, $logger);
        $this->_domainAppTable = new OpTableModel($db, 'map_domain_app', $logger);
    }
    
    
    /**
     * 查询列表
     * @param array $where
     * @param int $offset
     * @param int $count
     * @param string $sort
     * @param array $otherWhere
     * @return array|boolean
     */
    public function getDomainList($where = null, $offset = 0, $count = null, 
        $sort = null, $otherWhere = null)
    {
        return $this->_domainAppTable->get($where, $offset, $count, $sort, $otherWhere);
    }
    
}